﻿namespace Chapter04.DesignMode3 {
    public class ChicagoPizzaStore : PizzaStroe {
        public static IPizzaIngredientFactory IngredientFactory => new ChicagoPizzaIngredientFactory();

        public override Pizza CreatePizza(string type) {
            return type switch {
                "cheese" => new CheesePizza(IngredientFactory),
                "clam" => new ClamPizza(IngredientFactory),
                _ => throw new NotImplementedException(),
            };
        }
    }
}
